package com.scott.ch170.entity;

/**
 * @author 黄后林
 * @version 1.0
 * @note
 * @date 2021-12-18 23:11:51
 */
public class Baby extends Child {

    private Integer money;


    public Baby(String name, Integer age, Integer money) {
        super(name, age);
        this.money = money;
    }

    public Integer getMoney() {
        return money;
    }

    @Override
    public String toString() {
        return "Baby{" +
                "money=" + money +
                ", age=" + getAge() +
                ", name='" + getName() + '\'' +
                '}';
    }
}
